package com.by.common.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@ApiModel("分页结棍")
@AllArgsConstructor
@NoArgsConstructor
public class PageBean<T> {

    @ApiModelProperty("当前页数")
    int page;

    @ApiModelProperty("每页记录数")
    int pageSize;

    @ApiModelProperty("总记录数")
    long total;
    @ApiModelProperty("分页结果")

    T data;
}
